﻿namespace Cms.Domain
{
    public class Plugin
    {
        private string _fullClassName;

        public virtual int ID { get; set; }

        public virtual string FullClassName
        {
            get { return _fullClassName; }
            set { _fullClassName = value; }
        }
        
        public virtual string AssemblyName { get; set; }
        
        public virtual bool Activated { get; set; }

        public virtual string GetClassName()
        {
            return _fullClassName.Substring(_fullClassName.LastIndexOf(".") + 1);
        }
    }
}